﻿/*
	Author : jl
	Create By CodeSmith
	2010/7/24
*/

using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model
{
    /// <summary>
    /// 实体类
    /// </summary>
    [Serializable()]
    [HZ.Table(TableName = "TB_Prescription")]
    public class Prescription
    {
        /// <summary>
        /// 
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string PrescriptionId { get; set; }
		/// <summary>
		/// 采购单名称
		/// </summary>
		public string PrescriptionName { get; set; }
        /// <summary>
        /// 处方地区名称
        /// </summary>
        public int? PAreaId { get; set; }
        /// <summary>
        /// 地区名称
        /// </summary>
        public string PAreaname { get; set; }
        /// <summary>
        /// 医院ID
        /// </summary>
        public string PHospitalId { get; set; }
        /// <summary>
        /// 医院名称
        /// </summary>
        public string PHospitalName { get; set; }
        /// <summary>
        /// 病人名称
        /// </summary>
        public string PatientName { get; set; }
        /// <summary>
        /// 医院内部处方单编号
        /// </summary>
        public string PHisPId { get; set; }
        /// <summary>
        /// 医生名称
        /// </summary>
        public string PdoctorName { get; set; }
        /// <summary>
        /// 处方单总金额
        /// </summary>
        public decimal? PtotalAmount { get; set; }
        /// <summary>
        /// 处方单基药总金额
        /// </summary>
        public decimal? PEssentialDrugsAmount { get; set; }
                /// <summary>
        /// 补贴总金额
        /// </summary>
        public decimal? PSbsidyAmount { get; set; }
        /// <summary>
        /// 病人年纪
        /// </summary>
        public int? PAge { get; set; }
        /// <summary>
        /// 病人性别
        /// </summary>
        public bool? PSex { get; set; }
		/// <summary>
		/// 疾病种类
		/// </summary>
		public string PsympToms { get; set; }

		/// <summary>
		/// 出库单备注
		/// </summary>
		public string PRemark { get; set; }
		
        /// <summary>
        /// 添加时间
        /// </summary>
        public System.DateTime? Paddtime { get; set; }
		/// <summary>
		/// 提交时间
		/// </summary>
		public System.DateTime? PSubmitTime { get; set; }
        /// <summary>
        /// 补贴状态0未补贴，1已补贴医院未确认，2已补贴已确认
        /// </summary>
        public int? PisSubsidy { get; set; }
        /// <summary>
        /// 补贴时间
        /// </summary>
        public System.DateTime? PSubsidyTime { get; set; }
		
        /// <summary>
        /// 补贴建单人
        /// </summary>
        public string PSubsidyUserid { get; set; }
		/// <summary>
        /// 处方单提交字段0未提交1已提交2未提交待审核3待审核4已审核未确认5已确认
		/// </summary>
		public int? POrderStatus { get; set; }
		/// <summary>
		/// 确认时间
		/// </summary>
		public System.DateTime? PConfirmationTime { get; set; }
        /// <summary>
        /// 按比例计算的补贴金额
        /// </summary>
        public decimal? PSubsidiesAmount { get; set; }
        /// <summary>
        /// 上次补助金额
        /// </summary>
        public decimal? pUnSubsidiesAmount { get; set; }
        /// <summary>
        /// 撤销处方单备注
        /// </summary>
        public string Remarks { get; set; }

		
    }
}